Skip to content

Instantly share code, notes, and snippets.

@heby1
heby1 / README.md
Last active January 2, 2026 10:27
Python script to update the image source file on an already imported tileset / spritesheet on Sprite Fusion

How to update Sprite Fusion spritesheet without re-import

TLDR

  • Make backup json in Sprite Fusion > Save.
  • Run python update_spritesheet.py <filename of png> <filename of json>

Instructions

Basically Sprite Fusion project's json-file has one or more spritesheets, which are base64 encoded images. You could do this manually if you want to, but here is a script for you.

@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:57
Rust CLAUDE.md (20260101)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

Preface

Genymotion recently moved root access behind a paywall, making it a premium feature. However, if you're using Genymotion for Android development, testing, or educational purposes, having root access can be essential. Root access allows developers to access deeper functionality, test root-only features, and explore Android's internals without restrictions.

The good news is that with a bit of work, you can still enable root on a Genymotion emulator if you have access to its disk image and platform keys. This guide walks you through the process of adding a custom system app, RootToggle, which will allow you to switch root access on and off without needing Genymotion's paid root access feature.

This Gist details the steps to compile, sign, and install RootToggle as a system app in a Genymotion emulator by directly modifying the emulator's disk image IN LINUX (use a virtual machine on Windows to do that).


@Spektykles
Spektykles / WCN6856_WCNSS_qcom_cfg.ini
Last active January 2, 2026 10:21
Custom qualcomm driver config WCNSS_qcom_cfg.ini for 8 Gen 1 / FastConnect 6900 / QCA6490 / WCN6856 | 8 Gen 2 / 8 Gen 3 / FastConnect 7800 / WCN7851 | 8 Elite / FastConnect 7900 / WCN7861 no UWB
# This file allows user to override the factory
# defaults for the WLAN Driver
gDot11Mode=0
InfraUapsdVoSrvIntv=0
InfraUapsdViSrvIntv=0
InfraUapsdBeSrvIntv=0
InfraUapsdBkSrvIntv=0
gAddTSWhenACMIsOff=1
gEnableApOBSSProt=1
@r15ch13
r15ch13 / iommu.sh
Last active January 2, 2026 10:20
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@CodeAsm
CodeAsm / README.MD
Last active January 2, 2026 10:19
EBAZ4205
@rickklaasboer
rickklaasboer / how-to-setup-plex-with-sonarr-radarr-jackett-overseerr-and-qbittorrent-using-docker.md
Last active January 2, 2026 10:17
How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

Before continuing: This guide is currently outdated but I'm working on a new one with upgrading steps included. I'll link it here once it's finished :)

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking

@radiofun
radiofun / Distortion.metal
Created January 1, 2026 22:14
Distortion Shader that is influenced by dragging position.
#include <metal_stdlib>
#include <SwiftUI/SwiftUI.h>
using namespace metal;
//Use DistortionSampleView.swift to try it out
//2026 Minsang Choi
[[ stitchable ]] half4 distortion(float2 pos, SwiftUI::Layer l, float4 boundingRect, float2 dragp) {
float2 delta = pos - dragp;
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 2, 2026 10:15
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter: